﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RssSitesEdit.aspx.cs" Inherits="nst_RssSitesEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        ID: <asp:Label ID="LabelSiteId" runat="server" Text=""></asp:Label>
        <table>
            <tr>
                <td>SiteName</td>
                <td>
                    <asp:TextBox ID="txtSiteName" runat="server" MaxLength="20"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="ReqSiteName" runat="server" ErrorMessage="输入SiteName" ControlToValidate="txtSiteName" Display="Dynamic" ValidationGroup="valid"></asp:RequiredFieldValidator>
                </td>
                <td>IsValid</td>
                <td>
                    <asp:CheckBox ID="CheckBoxIsValid" runat="server" Checked="True" Text="是" />
                </td>
                
            </tr>
            <tr>
                <td>NewsCount</td>
                <td>
                    <asp:TextBox ID="txtNewsCount" runat="server" MaxLength="20" Text="100"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="ReqNewsCount" runat="server" ErrorMessage="输入NewsCount" ControlToValidate="txtNewsCount" Display="Dynamic" ValidationGroup="valid"></asp:RequiredFieldValidator>
                    <asp:RangeValidator ID="RangeNewsCount" runat="server" ErrorMessage="输入数字" ControlToValidate="txtNewsCount" Display="Dynamic" MaximumValue="9999" MinimumValue="1" ValidationGroup="valid"></asp:RangeValidator>
                </td>
                <td>ExpiryTime当前时间</td>
                <td>
                    ErrorN
                    <asp:DropDownList ID="ddlErrorN" runat="server">
                        <asp:ListItem>3</asp:ListItem>
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem>4</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>TimeSpan 分钟</td>
                <td>
                    <asp:TextBox ID="txtTimeSpan" runat="server" MaxLength="30" Text="120"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="ReqTimeSpan" runat="server" ErrorMessage="输入TimeSpan" ControlToValidate="txtTimeSpan" Display="Dynamic" ValidationGroup="valid"></asp:RequiredFieldValidator>
                    <asp:RangeValidator ID="RangeTimeSpan" runat="server" ErrorMessage="输入数字" ControlToValidate="txtTimeSpan" Display="Dynamic" MaximumValue="9999" MinimumValue="1" ValidationGroup="valid"></asp:RangeValidator>
                </td> 
                <td>haveContent</td>  
                <td>
                    <asp:CheckBox ID="CheckBoxHaveContent" runat="server" Text="有完整内容" />
                </td>            
            </tr>            
            <tr>
                <td>type</td>
                <td>
                    <asp:DropDownList ID="ddlType" runat="server">
                        <asp:ListItem Value="11">国内</asp:ListItem>
                        <asp:ListItem Value="12">国际</asp:ListItem>
                        <asp:ListItem Value="13">体育</asp:ListItem>
                        <asp:ListItem Value="14">娱乐</asp:ListItem>
                        <asp:ListItem Value="15">社会</asp:ListItem>
                        <asp:ListItem Value="16">科技</asp:ListItem>
                        <asp:ListItem Value="17">时尚</asp:ListItem>
                        <asp:ListItem Value="18">财经</asp:ListItem>
                        <asp:ListItem Value="19">汽车</asp:ListItem>
                        <asp:ListItem Value="20">教育</asp:ListItem>
                        <asp:ListItem Value="21">军事</asp:ListItem>
                        <asp:ListItem Value="22">房地产</asp:ListItem>                        
                    </asp:DropDownList>
                </td>
                <td>haveImg</td>
                <td>
                    <asp:CheckBox ID="CheckBoxHaveImg" runat="server" Text="有图片" />
                </td>
            </tr>
            <tr>
                <td>xmlSiteId</td>
                <td>
                    <asp:TextBox ID="txtXmlSiteId" runat="server" MaxLength="80"></asp:TextBox> 
                    <asp:RequiredFieldValidator ID="ReqXmlSiteId" runat="server" ErrorMessage="输入XmlSiteId" ControlToValidate="txtXmlSiteId" Display="Dynamic" ValidationGroup="valid"></asp:RequiredFieldValidator>
                </td>
                <td>xmlFileName</td>
                <td>
                    <asp:TextBox ID="txtXmlFileName" runat="server" MaxLength="80"></asp:TextBox> 
                    <asp:RequiredFieldValidator ID="ReqXmlFileName" runat="server" ErrorMessage="输入XmlFileName" ControlToValidate="txtXmlFileName" Display="Dynamic" ValidationGroup="valid"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>Url</td>
                <td colspan="3">
                    <asp:TextBox ID="txtUrl" runat="server" MaxLength="200" Width="500px"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="ReqUrl" runat="server" ErrorMessage="输入Url" ControlToValidate="txtUrl" Display="Dynamic" ValidationGroup="valid"></asp:RequiredFieldValidator>
                </td>               
            </tr>            
        </table>
        <asp:Button ID="ButtonEdit" runat="server" Text="修改站点信息" onclick="ButtonEdit_Click" ValidationGroup="valid" />
        <asp:Label ID="LabelMsg" runat="server" ForeColor="Red" Text=""></asp:Label>
    </div>
    </form>
</body>
</html>
